package com.lifeng.future;

/**
 * Created by lifeng on 2018/11/19.
 */
public class Client {

    public MyData submit(final String data){
        final FutureData futureData = new FutureData();
        new Thread(new Runnable() {
            @Override
            public void run() {
                RealData realData = new RealData(data);
                futureData.setRealData(realData);
            }
        }).start();
        return futureData;
    }
}
